package com.study.teacher;

public class ECPlatform {
	private DiscountType type=null;
	
	/*
	public ECPlatform(DiscountType type){
		this.type = type;
	}
	*/
	
	public void discount(DiscountType type){
		type.discount();
	}
	
	public static void main(String args[]){
		ECPlatform form = new ECPlatform();
		DiscountType type = new DiscountType1();
		
		form.discount(type);
		
	}
}
